sha512

how to implement sha 512,md5 and salt encryption all for one password [duplicate]

扶醉桌前 提交于 2020-01-11 20:00:12
问题 This question already has answers here : Secure hash and salt for PHP passwords (14 answers) Closed 5 years ago . $pass="test" the above variable contains a password called test.I want to hash this password using sha512 md5 and salt how do i do that as ive found only benifits of salt and sha512,i allready know md5 encryption.please i need the solution as my system is vunerable and please explain it with a code example because im still attached to md5 from what ive understood by your comments

how to implement sha 512,md5 and salt encryption all for one password [duplicate]

不问归期 提交于 2020-01-11 20:00:10
问题 This question already has answers here : Secure hash and salt for PHP passwords (14 answers) Closed 5 years ago . $pass="test" the above variable contains a password called test.I want to hash this password using sha512 md5 and salt how do i do that as ive found only benifits of salt and sha512,i allready know md5 encryption.please i need the solution as my system is vunerable and please explain it with a code example because im still attached to md5 from what ive understood by your comments

Java vs. Golang for HOTP (rfc-4226)

↘锁芯ラ 提交于 2020-01-10 05:06:12
问题 I'm trying to implement HOTP (rfc-4226) in Golang and I'm struggling to generate a valid HOTP. I can generate it in java but for some reason my implementation in Golang is different. Here are the samples: public static String constructOTP(final Long counter, final String key) throws NoSuchAlgorithmException, DecoderException, InvalidKeyException { final Mac mac = Mac.getInstance("HmacSHA512"); final byte[] binaryKey = Hex.decodeHex(key.toCharArray()); mac.init(new SecretKeySpec(binaryKey,

Verify a SHA512 password if($row['password']==hash('SHA512', $upass))

半世苍凉 提交于 2020-01-07 09:09:08
问题 When a user creates a account on my website then their password is stored using SHA512. My problem is when the user tries to login with their password, i believe i am verifying the password incorrectly however i cannot see what i have done wrong. Here is my register script which works : $uname = mysql_real_escape_string($_POST['uname']); $sname = mysql_real_escape_string($_POST['sname']); $email = mysql_real_escape_string($_POST['email']); $upass = mysql_real_escape_string($_POST['pass']);

sha512-crypt mysql and dovecot

≡放荡痞女 提交于 2020-01-01 03:01:09
问题 I have a question about understanding sha512-crypt hashing. I found this tutorial to set up dovecot and postfix with mysql. I followed the tutorial (with slight modifications) and everything works fine. But there is one thing, that I do not understand: To add a user, I should use: INSERT INTO `mailserver`.`virtual_users` (`id`, `domain_id`, `password` , `email`) VALUES ('1', '1', ENCRYPT('firstpassword', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))), 'email1@example.com'), ('2', '1', ENCRYPT(

Excel formula-based function for SHA256 / SHA512 hashing without VBA or macros

为君一笑 提交于 2019-12-29 06:57:22
问题 It's the year 2017 and anybody who needs to use hashes should avoid 'broken' ones such as MD5, if security is important. Has anybody found or created a way to do more secure SHA256 or SHA512 hashing in Excel, without using VBA or macros? A spectacular example of this being done before was over 3½ years ago with MD5 (as seen in this SO: MD5 Hash function in excel without using VBA). Reason for avoiding VBA/Macros: Compatibility with mobile devices, such as Excel for iOS. Side Note: The

Does VBA have a Hash_HMAC

青春壹個敷衍的年華 提交于 2019-12-28 13:56:21
问题 Hi I am trying to Encrypt a string to invoke a web service from VBA. I need to do the following function in VBA and i have example code in PHP. Here is the PHP code. Does anyone know how to do this in VBA? $binaryHash = hash_hmac('sha512', $url.$timestamp, $ws_session_array["sharedSecret"], true); $hash = base64_encode($binaryHash); 回答1: Here's what you need: Public Function Base64_HMACSHA1(ByVal sTextToHash As String, ByVal sSharedSecretKey As String) Dim asc As Object, enc As Object Dim

HMAC-SHA-512 implemention for ActionScript

丶灬走出姿态 提交于 2019-12-24 07:43:55
问题 As mentioned by the title, I would like to find an implementation for HMAC-SHA-512 written for ActionScript. I was able to find a library that provide HMAC-SHA-256 with other functions, however, I am looking for HMAC-SHA-512 specifically. Thank you Edit: Or, since actionscript and javascript have the same origin, can some one port this javascript version into actionscript? http://pajhome.org.uk/crypt/md5/sha512.html Edit 2: I already ported the code from javascript to actionscript. The code

Salted sha512 in C, cannot synchronise with Symfony2's FOSUserBundle

陌路散爱 提交于 2019-12-24 01:05:46
问题 My developement is separated into two components : The website, a Symfony application using FOSUserBundle, which encrypts password using SHA512, and a salt. An authentication module, programmed in C, which should be able to reproduce the SHA512 salted hash once it's given the salt, and the cleartext password. Some information about my environment I'm using Linux Ubuntu 12.04. ldd --version answers EGLIBC 2.15-0ubuntu10.4 2.15 (maybe I need 2.7 ? But apt-get is a real PAIN when it comes to

VBScript error 5 trying to compute sha512 with 'System.Security.Cryptography.SHA512Managed'

浪尽此生 提交于 2019-12-24 00:23:03
问题 I am trying to write a piece of code in VBScript to compute the SHA512 value for a given file. According to MSFT documentation the ComputeHash method of the SHA512Managed object requires a Byte array as input. So I used ADODB to read the input file which SHA512 value is to be computed (Because, AFAIK, there is no way to build a Byte array in VBScript). However I get a runtime error 5, 'Invalid procedure call or argument' when calling the method. The variable bar in the code below is of type