Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UTF8 Encode and Create SHA256 Hash

User_8X93XMar 7 2016 — edited Mar 7 2016

Need to create a routine in plsql to accomplish the following that is currently in c#:

string baseString = (Code ?? "")

                                   + (UserNumber ?? "" )

                                   + (Role ?? "" )

                                   + (FirstName ?? "" )

                                   + (LastName ?? "" )

byte[] bytes = System.Text.Encoding.UTF8.GetBytes(baseString);

byte[] hash = new System.Security.Cryptography.SHA256Managed().ComputeHash(bytes);

This post has been answered by odie_63 on Mar 7 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2016
Added on Mar 7 2016
4 comments
844 views