Page 1 of 1

any secure encryption algorithm implemented ?

Posted: Fri Jun 24, 2016 2:29 am
by Sesztak
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

Re: any secure encryption algorithm implemented ?

Posted: Fri Jun 24, 2016 9:51 am
by rkmore
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

Re: any secure encryption algorithm implemented ?

Posted: Mon Jun 27, 2016 7:41 am
by Sesztak
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

Re: any secure encryption algorithm implemented ?

Posted: Fri Sep 16, 2016 6:26 am
by JS-Support @Userware
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