Is it safe to use the hash of the plain text as a key for encryption? - hash

If encrypt the plain text with its hash is it correct??
Where Can I find a paper that speak about it?
Is it possible Known-plaintext attack?

What would this be useful for? You would have the know the plain text to get back the plain text. If there is no need to remember the key (key is stored separately), you could as well generate a random key instead of a hash.

Related

iOS: 3 Strings into one hash. Find other string from hash of 2 strings

I have three strings : StrA, StrB, StrC.
And their hash is YT56ejff653499TYK
Now, if someone give me hash of StrA, StrB and its hash is IEoeuor749Hueiur7x, is there a way to extract StrC from YT56ejff653499TYK and IEoeuor749Hueiur7x
Assuming you are referring to some of the standard one-way hash functions like SHA-2 or similar, this should never be possible.
For example, if this was possible by any mean it would make the password hash salting technique essentially a disclosure of the original password.
In short, with a one-way hash function which is not broken this should not be possible.

SHA1 Hash in BitTorrent is not text

I am learning how the bitTorrent and Bencoded dictionary of bitTorrent. But I don't understand how the pieces are encoded in SHA-1 in the torrent metainfo file. As from my knowledge SHA-1 hash is look like this aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d, but instead it look like this KÅ•Š8yç=¾4f¯gBûõÿm¶¤lâFiÔ
Somebody tell me what is this?
No, your assumption is wrong. SHA-1 doesn't "look like this aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d" as hash functions returns just list of bytes. What you have seen as KÅ•Š8yç=¾4f¯gBûõÿm¶¤lâFiÔ is just output of that function which your viewer tries to output as a text, which obviously fails.

Find Hash algorithm while hash value and original value are available

In this case i have clear Text password also i have hashed value of this password,so i need to know how can i find out what hashing algorithm was used and is it possible to use it for hashing another clear text password?
The Sums of a algoithm hast spezific length. This is Your First step.
Then you muss encod The Clear Text until you find The hashsum
Sorry send from German iphone

How best to display a file hash

Simple question. What is the best (most universal) way to display a file hash? Below are two SHA256 hashes for the same file. One is displayed as base64 and one is...something else. The file hash will be used for auditing to make sure the file we send is the same as the file the auditor received. If the hash needs to be verified, I want to make sure I provide the hash that is the most easily verifiable.
SHA256 55461e72cccb74b475278189956b9db307bf44945e1639af93c34b224b7fcfd
SHA256 Base 64 VUYecszLdLR1J4GJlWudswe/RJReFjmvk8NLIkt/z9s=
55461e72cccb74b475278189956b9db307bf44945e1639af93c34b224b7fcfd
The point of Base64 is to constrain the character set to displayable characters. The hash is in hexadecimal which is even more constrained.

String that cannnot be generated by SHA1

How do I generate or find string that can't be possibly generated by SHA1 encrypting of any input string?
The reason I ask this is because I need a global password placeholder in user table.
Thanks
It depends on the representation you use to store the SHA1-hash, actually. But just a * like sometimes used in /etc/passwd, should work. Actually an empty string would work, too, but I would use something more explicid -- like '*invalid'
If you are using the standard hex representation (like '68ac906495480a3404beee4874ed853a037a7a8f' e.g.), you could use everything that is not a 40digit hex number actually. Use some ascii char, not in [0-9a-f] better yet not in [0-9a-zA-Z].