Questions tagged [integrity]

The aspect of an object which describes it as unaltered since a reference time at which a description of its state was recorded, or a description of the continued functioning of a property of the object. An example of this is checking whether the MD5 hash of this file is the same as the MD5 hash that was calculated yesterday, to ensure the file was unaltered.

269 questions
24
votes
3 answers

Does encryption guarantee integrity?

To build a secure system, can we assume that encryption guarantees integrity is true before starting a secure programming? Both in symmetric and public-key encryption, is my question well-proofed ? If no, what are the vulnerabilities, can you give…
berkay
  • 3,789
  • 3
  • 33
  • 50
23
votes
5 answers

Why chose SHA512 over SHA384?

SHA384 is a truncated version of SHA512. But why would anyone use it? And corollary: if SHA384 is just as good as SHA512, is there any rationale in using the 512 bit version? I am planning to use one of the algorithms to verify file integrity, so I…
jst
  • 516
  • 1
  • 3
  • 8
15
votes
4 answers

Check Android Assets Integrity

In my folder assets/data, there are a lot of XML files containing static data for my app. It's really easy for someone to retrieve an APK, modify a part of it and install on a device. I would like to prevent users to alter my static data by checking…
Hartok
  • 2,137
  • 18
  • 36
14
votes
2 answers

On using Terracotta as a persistence solution

Would it be a good idea to use Terracotta as a persistence solution (replacing a database)? I'm specifically wondering about data integrity issues and support for transactional systems.
Loki
  • 26,620
  • 9
  • 46
  • 62
12
votes
2 answers

Redis and Data Integrity

I have some questions for REDIS DB: How to ensure data integrity? Are there methods ensure the integrity? Does Redis primary key? or alternatives Foreign key? Referential Integrity? How are the ACID properties to be implemented? Ever Thanks for a…
viv1d
  • 259
  • 2
  • 5
  • 12
11
votes
3 answers

Message Integrity Check with HTTP headers since Content-MD5 was deprecated?

Making a REST web server mainly based on large files uploads / downloads, I want to be able to check the file integrity. I believed that the proper way to do it was using Content-MD5 HTTP header [0] as proved useful by aws experience [1]. However,…
user687718
  • 111
  • 1
  • 4
11
votes
7 answers

Wordpress script with integrity and crossorigin

I'm trying to use the wp_register_script and wp_enqueue_script FUNCTION on WordPress to enqueue a script, which has two attributes: "integrity" and "crossorigin". Normally I use PHP and my code looks like: wp_register_script('jquery', 'http' .…
user6818018
11
votes
4 answers

How to find the offending attribute with a sqlalchemy IntegrityError

I have a very simple SqlAlchemy model class User(Base): """ The SQLAlchemy declarative model class for a User object. """ __tablename__ = 'users' id = Column(Integer, primary_key=True) phone = Column(String, unique=True) email =…
Peter Smit
  • 24,538
  • 27
  • 105
  • 165
10
votes
2 answers

HTTPS and Data Integrity

I haven't done lot of research on HTTPS yet so I have a question about it. Is data integrity preserved using HTTPS or only confidentiality? For example on file upload, does HTTPS guarantee that no one can change the data on upload, or it only…
Nebojsa Veron
  • 1,407
  • 3
  • 19
  • 36
10
votes
2 answers

Bootstrap failing to load from maxcdn ERR_CONNECTION_RESET

I'm using Bootstrap in my application from MAXCDN but sometimes it fails to load and gives me two reasons which I can't figure out why. (failed) net::ERR_CONNECTION_RESET // min.css (failed) net::ERR_SSL_VERSION_INTERFERENCE // min.js I'm using…
Karl Taylor
  • 3,590
  • 2
  • 25
  • 50
10
votes
5 answers

Is there an elegant way to check file integrity with md5 in ansible using md5 files fetched from server?

I have several files on a server that I need to download from an ansible playbook, but because the connection has good chances of interruption I would like to check their integrity after download. I'm considering two approaches: Store the md5 of…
9
votes
2 answers

Enable integrity checking with sqlite in django

In my django project, I use mysql db for production, and sqlite for tests. Problem is, some of my code rely on model integrity checking. It works well with mysql, but integrity errors are not thrown when the same code is executed in tests. I know…
Thibault J
  • 3,906
  • 28
  • 40
9
votes
4 answers

about MD5 checksum for Http big file downloading

MD5 checksum is widely used for integrity checking for Http downloading big files. My question is, since TCP itself provides reliable mechanism (i.e. checksum for each TCP package to ensure its integrity). So, in short TCP is reliable. Http is based…
George2
  • 42,353
  • 103
  • 307
  • 447
9
votes
2 answers

Is CRC32 really so bad for file integrity check?

Of course that MD5 is better then CRC32, SHA1 is better then MD5 and so on... But also they are also much slower then CRC32. Right know, I am thinking about how to check consistency of being transfered file and CRC32 is fastest option. I haven't…
Matt
  • 1,269
  • 1
  • 13
  • 20
8
votes
2 answers

To check if two image files are same..Checksum or Hash?

I am doing some image processing code where in I download some images(as BufferedImage) from URLs and pass it on to a image processor. I want to avoid passing of the same image more than once to the image processor(as the image processing operation…
Abhishek
  • 6,554
  • 20
  • 58
  • 76
1
2 3
17 18