Working with several DBs in parallel and need to initialize some records with hashed passwords. In MS SQL server
there are handy functions that allow to hash on the fly:
HashBytes('SHA1', CONVERT(nvarchar(32), N'admin'))
Is there is a similar function with SQLite
?
If not, which is the easiest workaround (such as select from SQL server
and somehow insert it into SQLite
tables)?
The preferred hashing algorithm is SHA1
and the passwords are stored in a BLOB
column.
Update: I use C# language in the current project.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…