Skip to content

Instantly share code, notes, and snippets.

View ronnysuero's full-sized avatar
🏠
Working from home

Ronny Zapata ronnysuero

🏠
Working from home
View GitHub Profile
@ronnysuero
ronnysuero / EncryptSmallData.md
Created November 24, 2023 19:20 — forked from QingpingMeng/EncryptSmallData.md
Encrypt data using JavaScript in browser with RSA public key generated in C# without library

This is an example to demo how you generate the RSA key pair from server side(.NetCore 3.1) and pass the public key to the client(Browser) for encrypting the data that <= 245 bytes.

RSA-2048 can only support to encrypt up to 245 bytes data.

Generate RSA key pair in C# (.Net Core 3.1):

using var rsaProvider = new RSACng();
// spki is used for browser side encryption
var spki = Convert.ToBase64String(rsaProvider.ExportSubjectPublicKeyInfo());
var encodedPrivateKey = Convert.ToBase64String(rsaProvider.ExportPkcs8PrivateKey());
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
/*
ELMAH - Error Logging Modules and Handlers for ASP.NET
Copyright (c) 2004-9 Atif Aziz. All rights reserved.
Author(s):
Atif Aziz, http://www.raboof.com
Phil Haacked, http://haacked.com
@ronnysuero
ronnysuero / .gitconfig
Created July 17, 2017 15:08 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@ronnysuero
ronnysuero / .htaccess
Created January 26, 2016 16:44 — forked from keithics/.htaccess
Laravel and Shared hosting - Hostgator and without virtual host
AddHandler application/x-httpd-php53 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /public_html/DOMAIN.COM/public
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
set SERVEROUTPUT on size 100000;
DECLARE
VARIABE NUMBER;
BEGIN
VARIABE := IMPORTAR_PAISES_PKG.GUARDAR_PAISES( 26, 1, 'PRUEBA PARAM 1', 'PRUEBA PARAM 2', 1, 1 );
dbms_output.put_line(VARIABE);
END;