any secure encryption algorithm implemented ?

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

any secure encryption algorithm implemented ?

Postby Sesztak » Fri Jun 24, 2016 2:29 am

Dear Sir,
is there any secure encryption/decription algorithm implemented -like AES, RSA, etc. as in normal .NET using System.Security.Cryptography?

(we would like to use one instead of SSL/https)

We have not found any in "what is supported" .NET Framework types and methods:
http://cshtml5.com/links/what-is-supported.aspx

Based on my opinion it is a fundamental "must" for a web-related developer enviroment.

Great thanks for your kind reply in advance,
Péter

rkmore
Posts: 55
Joined: Mon Dec 07, 2015 1:53 pm

Re: any secure encryption algorithm implemented ?

Postby rkmore » Fri Jun 24, 2016 9:51 am

You can easily use javascript interop to call one of the many excellent javascript crypto libraries.

I have been using Stanford Javascript Crypto Library (SJCL) but there are many good ones.

http://bitwiseshiftleft.github.io/sjcl/

for a pretty good list of availabe crypto libraries see here

https://gist.github.com/jo/8619441

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: any secure encryption algorithm implemented ?

Postby Sesztak » Mon Jun 27, 2016 7:41 am

Dear rkmore,
First of all thanks for your kind guidance.

1./ As we are quite unexperienced with javascript interoperability, would you be so kind to share some 'mini' skeleton code with us how to do basic encrypt/decrypt ?

2./ another question: how/where to store secret keys ?
I mean what is the best practices what you should recommend?

Thanks in advance,
Best Regards,
Péter

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: any secure encryption algorithm implemented ?

Postby JS-Support @Userware » Fri Sep 16, 2016 6:26 am

Sesztak wrote:would you be so kind to share some 'mini' skeleton code with us how to do basic encrypt/decrypt ?


Here is an example of how to use a JavaScript-based library to implement the SHA1 cryptography algorithm in a CSHTML5 project (you can do something similar to implement the encryption/decription algorithms such as AES, RSA, etc.):

http://forums.cshtml5.com/viewtopic.php?f=7&t=7716

Regards,
JS-Support


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 33 guests

 

 

cron