aes

Crypto++ encrypt and decrypt in two different c++ programs

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am writing a code to encrypt and decrypt with crypto++ library .I found a code to encrypt and decrypt which is shown below.The code works OK as one program.but when I divide into two c++ programs (One for encryption and another for decryption) the decryption pargram gives me error terminate called after throwing an instance of 'CryptoPP::InvalidCiphertext' what(): StreamTransformationFilter: ciphertext length is not a multiple of block size The ciphertext I get after encryption is which I transfer into the decryption code. What am I doing

SSL handshake_failure after clientHello

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect an embedded device to smtp.gmail.com:465 using tls1.2 with WolfSSL. The library creates and sends the following clientHello message and receives a handshake failure. 16 03 03 00 4f 01 00 00 4b 03 03 2e 2a ec 85 7f 15 dd 09 5f 22 d1 53 82 60 d7 80 67 28 aa 67 48 ce f0 71 ab 63 d0 b2 3e 55 3a 05 00 00 14 c0 27 c0 23 c0 0a c0 09 c0 07 c0 08 c0 14 c0 13 c0 11 c0 12 01 00 00 0e 00 0d 00 0a 00 08 04 03 02 03 04 01 02 01 Here is the received message; 15 03 03 00 02 02 28 As can be seen in the wireshark screenshot , the

How to use a CNG (or AES-NI enabled instruction set) in .NET?

ぐ巨炮叔叔 提交于 2019-12-03 07:58:41
问题 I Currently perform a large amount of encryption/decryption of text in c# using AES. With a pure software system it can take quite a processor hit for a decent amount of time for the lots of datasets required to be decrypted. I know Intel have came out with their AES-NI instruction set and AMD has come out with similar. I'm using .NET 4.0, I know that the windows CNG framework makes use of these instruction sets, but it does not appear that AesManaged in the .NET world does the same. There is

Wanted Compatible AES code Encrypt/Decrypt for Iphone, Android, Windows/XP

拈花ヽ惹草 提交于 2019-12-03 07:57:18
I need to be able to send secure information to a variety of phones from Windows. I am a total novice in both iPhone and Android development, but need to create an easy to use app for each environment. Interfacing with received SMS text messages would also be nice. I would like to acquire code for AES 256 encryption for the iPhone, Android and Windows XP (and up). Thanks Murray Few important things to note while implementing AES encryption: 1. Never use plain text as encryption key. Always hash the plain text key and then use for encryption. 2. Always use Random IV (initialization vector) for

Android AES-128 encryption/decryption of file is very slow. How can I increase the speed

孤街浪徒 提交于 2019-12-03 07:54:56
问题 I am developing an android app that secures images and videos like Vaulty and Keep safe. I am trying to use AES-128 encryption/decryption technique to store images and videos. I tried it by taking 3 sample images of size 5.13, 4.76 and 5.31 respectively. But the time it is consuming to encrypt is 25s, 22s, 27s respectively and time to decrypt is 31s, 30s, 34s respectively. I am testing it on HTC One X. Such speed wont be feasible for my app as users will scroll and view images quickly without

Unable to Pass Arguments in User Define Function to ggplot

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to create a user define function that wraps around some popular ggplot code I found. I am getting the following error: "Error in `[.data.frame`(DS, , xvar) : object 'xcol' not found" The following is a small pseudo dataset to illustrate the issue. n = 25 dataTest <- data . frame ( xcol = sample ( 1 : 3 , n , replace = TRUE ), ycol = rnorm ( n , 5 , 2 ), Cat = letters [ 1 : 5 ]) The user defined code is as here: TRIPLOT <- function ( DS , xvar , yvar , zvar ) { #localenv<-environment() gg <- data . frame ( x = DS [, xvar ], y

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. laravel 5.3

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed a new fresh copy of laravel 5.3 using composer but I keep getting this error: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. Even though my app.php file in config directory specify 'cipher' => 'AES-128-CBC', 回答1: You need to have .env on your appication folder then run: $ php artisan key:generate If you don't have .env copy from .env.example : $ cp .env.example .env 回答2: Run this commands on your terminal: php artisan config:clear then php artisan config:cache 回答3: If you are running a

SSLHandshakeException: Handshake failed on Android N/7.0

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on an app for which the (power)users have to set up their own server (i.e. nginx) to run the backend application. The corresponding domain needs to be configured in the app so it can connect. I've been testing primarily on my own phone (sony z3c) and started developing for 5.1. Later I received an update for 6.0 but still maintained a working 5.1 inside the emulator. Not too long ago, I started to work on an AVD with an image for 7.0 and to my suprise it won't connect to my server, telling me the ssl handshake failed. My nginx

Java SSL SSLHandshakeException handshake_failure

匿名 (未验证) 提交于 2019-12-03 07:36:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using java 8 and requesting with SSLSocket this url: https://www.flixbus.de/sites/default/files/6_jetzt_buchen_button_tiny.png I always get a handshake error. socket.setEnabledProtocols() to force use of a specific protocol didn't help. Btw, all other web servers work fine. So it's probably not related to my code. This error also occurs without any ssl/tls protocol restriction. Any ideas? The output with option "javax.net.debug=all" is as follows: DEBG getSecureScocket: Supported protocols: - SSLv2Hello - SSLv3 - TLSv1 - TLSv1.1 - TLSv1

RSA前台加密后台解密的应用

谁说胖子不能爱 提交于 2019-12-03 07:31:25
写在前面 安全测试需要, 要修改一下登录时密码传输逻辑, 保证密码传输保密性和完整性以及新增用户保存用户密码时存储保密性及完整性, 以下是测试方提供的思路: 关于传输保密性及完整性 前台js代码(关键代码已加粗), 关于数据进行RSA加密部分详细可参考: RSA前台加密后台解密的应用 var data = $(":input").each(function() { if (this.name == 'password') { //只加密密码 //获取公钥系数 var modulus = $('#hid_modulus').val(); //获取公钥指数 var exponent = $('#hid_exponent').val(); //获取最终公钥 var key = RSAUtils.getKeyPair(exponent, '', modulus); //获取需加密的值(口令) var passwordVal = $("#" + this.name).val(); //将口令md5 var hexMd5 = hex_md5(passwordVal); //生成uuid var uuid = guid(); //合并口令+md5(口令)+uuid passwordVal = passwordVal + hexMd5 + uuid;//进行数据加密 var ap =