Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 11321

Questions relating to cryptographic topics such as encryption/decryption and hashing. (Not for use with trivial ciphers.)

4 votes
1 answer
2k views

ChaCha20 Implementation (based on RFC7539)

Rolling my own cryptography in order to better understand the subject and came up with implementation of the ChaCha20 algorithm pasted below. …
Kittoes0124's user avatar
  • 1,940
2 votes
0 answers
418 views

T-SQL Totp (Rfc6238 SHA2_256) Implementation

Using my previous function as a base I've come up the following: create function dbo.Totp ( @key varbinary(8000) , @timeStep int = 90 ) returns table with schemabinding as return ( select [ …
Kittoes0124's user avatar
  • 1,940
2 votes
1 answer
224 views

T-SQL Constant Time Comparison

Cryptography. Why? Given the strings 0x1234 and 0x1213 a simple equality comparison will stop processing after it hits the first mismatch at byte position 3. …
Kittoes0124's user avatar
  • 1,940
6 votes
1 answer
315 views

T-SQL Pbdfk2 (Rfc2898 SHA2_256) Implementation

Using my previous function as a base I've come up the following: create function dbo.Pbkdf2 ( @password varbinary(8000) , @salt varbinary(7996) , @iterations int = 1000 , @derivedKeyLength …
Kittoes0124's user avatar
  • 1,940
4 votes
1 answer
110 views

T-SQL Secure String Comparison

Cryptography, Gaming. Why? Given the strings 0x1234 and 0x1213: a simple equality comparison will stop processing after it hits the first mismatch at byte position 3. …
Kittoes0124's user avatar
  • 1,940
7 votes
1 answer
1k views

T-SQL Hmac (Rfc2104 SHA2_256) Implementation

I'm trying to implement an Hmac in T-SQL using this question as an guide. Please critique this: create function dbo.Hmac ( @key varbinary(8000) , @message varbinary(7936) ) returns table wit …
Kittoes0124's user avatar
  • 1,940