feat(EnvelopeReceiverReadOnly): Created endpoint for ShowEnvelope view

This commit is contained in:
Developer 02
2024-10-04 11:28:52 +02:00
parent dc997d5ff2
commit bc6955055a
3 changed files with 38 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ namespace EnvelopeGenerator.Extensions
{
public static string EncodeEnvelopeReceiverId(this long readOnlyId)
{
//The random number is used as a salt to increase security but it is not saved in the database.
string combinedString = $"{Random.Shared.Next()}::{readOnlyId}::{Random.Shared.Next()}";
byte[] bytes = Encoding.UTF8.GetBytes(combinedString);
string base64String = Convert.ToBase64String(bytes);