{"id":6851,"date":"2014-05-03T07:16:29","date_gmt":"2014-05-03T07:16:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/03\/androidencryptioncrashrsarelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-05-03T07:16:29","modified_gmt":"2014-05-03T07:16:29","slug":"androidencryptioncrashrsarelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/03\/androidencryptioncrashrsarelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"android,encryption,crash,rsaRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fa332f234c90790b93bdb157e8af85e7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStephen S<br \/>\nandroid calabash<br \/>\nI&#8217;m having some issues defining my own steps using Calabash-Android and Cucumber.My step definition file containsrequire &#8216;calabash-android\/calabash_steps&#8217;Given \/^I wait for obb download$\/ dopending endAnd the error message I am getting isCalabash-Android\/features\/step_definitions\/calabash_steps.rb:1: syntax error, unexpected tCONSTANT, expecting end-of-inputGiven \/^I wait for obb download$\/ &#8230; &#8230; ^ (SyntaxError)I have tried using the Given and When prepositions an<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/54cbf9f2faa2a701848356bf72d2dd3c?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3304602<br \/>\nandroid kivy pyjnius<br \/>\nWhen after I give the command: buildozer android debug deploy runI am getting the following error. Its showing syntax error ?# Install distribute # Run &#8216;curl http:\/\/python-distribute.org\/distribute_setup.py | venv\/bin\/python&#8217; # Cwd \/root\/Bt\/.buildozer % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1395 100 1395 0 0 276 0 0:00:05 0:00:05 &#8211;:&#8211;:&#8211; 276 File &#8220;&lt;stdin&gt;&#8221;, line 1 &lt;HTML&gt;&lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/15b5b2c786fe218885568937ff99a363?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVISHAL VIRADIA<br \/>\nandroid python exception-handling command-line-arguments android-sdk-tools<br \/>\ni want to do this:-$&gt; cd android-sdk\/tools\/systrace $&gt; python systrace.py &#8211;set-tags gfx,view,wm $&gt; adb shell stop $&gt; adb shell start $&gt; python systrace.py &#8211;disk &#8211;time=10 -o mynewtrace.htmli run this command:-python systrace.py &#8211;set-tags gfx,view,wmand error comes :-set-tags gfx,view,wmFile &#8220;systrace.py&#8221;, line 91except subprocess.CalledProcessError, e:^ SyntaxError: invalid syntaxi dont have much idea of python script, Please Help.Reference Link : http:\/\/developer.android.com\/t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fbcaf510a98d4b71fccb1c7f4b8f4b3d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1929549<br \/>\nandroid python opencv<br \/>\nI have difficulties with running a &#8220;run.py&#8221; file to test my Android OpenCV app. &#8220;run.py&#8221; file is unmodified and taken from the OpenCV library package from folder ..\\modules\\ts\\misc. I&#8217;m using tutorials from http:\/\/opencv.willowgarage.com\/wiki\/AnalyzePerfTestsLogs and http:\/\/code.opencv.org\/projects\/opencv\/wiki\/Android_Java_API_tests , but I get SyntaxErrors in the python compiler. According to the first tutorial, I change directory to my android application project folder, which is created by Ec<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/255b04fee636bfc414daa4263462f969?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3091819<br \/>\njavascript android ajax url webview<br \/>\nBy the title itself, I want to know if it is possible to call a Javascript function with ajax request using android&#8217;s webview. Because I&#8217;m getting error on my log cat:Uncaught syntaxerror unexpected identifier, sometimes uncaught reference error: is not defined at nullThis is how I call the javascript function: webview.loadUrl(&#8220;javascript:searchPath(&#8220;+ position + &#8220;,&#8221; + destination +&#8221;)&#8221; );where position and destination are variableswhere in my html file where function searchPath(var1, var2) cont<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/252cbfab6634a22f9b1e3c407b4a6f28?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1344545<br \/>\nandroid eclipse noclassdeffounderror kryo<br \/>\nI try to use Kryo within my android project.But I get a noClassDefFoundError Error during runtime. There is no syntaxerror highlithing during coding. The Error appears in the logcat at runtime.I have added the nessecary libraries to my Android Project. The jar files are physically in my libs folder of my Android Project Folder.After checking the libraries also in &#8220;Order and Export&#8221; I get a new NoDefClassFound error.Any ideas ?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/241aa8bb2a154108277e22ed03508ab0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWarrenFaith<br \/>\nandroid android-asynctask android-dialog<br \/>\nI have a completely separate class, which extends AsyncTask, I use it for executing a html get, so it wont freeze the UI. In the constructor of the AsyncTask Im passing the activity&#8217;s context, which invokes the .execute() of the task, so I can show a ProgressDialog while the htmlget is running. Here came the first problem: when rotating the phone, the current view got destroyed, and when the app reached the .dismiss() of the dialog, it crashed, since the view it was attached to does not exist an<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/621fdef028e2ededf205415e83faf1ee?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndevMKZ<br \/>\nandroid css jquery-mobile cordova<br \/>\nI am trying to get a simple jquery mobile ,phonegap, android app. The css isnt working in a android phone. I have gone through several posts here on the same topic, tried storing the js and css assets locally, adding the access in the config.xml etc, but no success. Will appreciate any help.Here is the html file.&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243;&gt; &lt;title&gt;Page Template&lt;\/title&gt; &lt;meta name=&#8217;viewport&#8217; content=&#8217;minimum-scale=1.0, width=device-w<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/UxUa1.jpg?s=32&amp;g=1\" \/><br \/>\np1rox<br \/>\nandroid python<br \/>\nI&#8217;m cloning a repo for a specific tablet under Android and to get the sources, I&#8217;ve to execute a python script. When I execute it I&#8217;ve got this error message :Traceback (most recent call last):File &#8220;\/home\/p1rox\/android-imx-sources\/.repo\/repo\/main.py&#8221;, line 40, in &lt;module&gt; from subcmds.version import Version File &#8220;\/home\/p1rox\/android-imx-sources\/.repo\/repo\/subcmds\/__init__.py&#8221;, line 41 raise SyntaxError, &#8216;%s\/%s does not define class %s&#8217; % (^ SyntaxError: invalid syntaxFull code of the scrip<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/46c8662896c9fb7bbc280d0c3aebc593?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOfirk<br \/>\nandroid json eclipse cordova<br \/>\nI need your help with the new version of phonegap 2.7.0. I&#8217;m trying to build my webapp of remote webpages with Eclipse, but when I build the app I get an error as follow:SyntaxError: unable to parse JSON string at http:\/\/mydomain\/cordova-2.7.0.js and phonegap features are disable and Deviceready is not fired. What I&#8217;m doing wrong and how can I resolve this issue? Thanks, Ofir<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dfea36f0a3ab8c5f8ad73bcc6cea241a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCJ7<br \/>\nencryption vb6 cryptography decompiling<br \/>\nOption Explicit Dim sSecretData sSecretData = &#8220;Here is some very secret data.&#8221; &#8216; Build up the key Dim wshNetwork, sComputerName Set wshNetwork = WScript.CreateObject(&#8220;WScript.Network&#8221;) sComputerName = wshNetwork.ComputerNameDim capEData Set capEData = CreateObject(&#8220;CAPICOM.EncryptedData&#8221;)capEData.Algorithm = 3 &#8216;Use 3DES capEData.SetSecret sComputerName capEData.Content = sSecretDataDim sCipherText sCipherText = capEData.EncryptcapEData.Algorithm = 3 capEData.SetSecret sComputerName capEData.D<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/24d31162190ec00bab27d79068729422?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTGuimond<br \/>\njavascript web-applications html5 encryption<br \/>\nI am working on a EDIT: mobile web app which displays some sensitive information and requires a login which stores the members username and password in a HTML5 Session. The username and password are currently stored in an un-encrypted state for the reason that we need to use this username and password on each page load to access the clients remote web-service.EDIT: After a security review our client raised the following concern:&#8221;There is the potential that Session Storage information can get sto<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ba33c43bdedd605ad7b57bbd09702bfc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndbkk<br \/>\nc# .net file sqlite encryption<br \/>\nWhat is the best approach to encrypting a SQLite database file in .Net\/C#? I&#8217;m using sqlite-dotnet2 wrapper.There are tools like SQLite Encryption Extension and SQLite Crypt, but both are non-free, while my project is under GPL. The naive approach I thought of using was to let SQLite handle a temporary file, then to encrypt it on program exit, and overwrite (zero-out) the original. The obvious drawback is that if program crashes (and while it is running), the plain text DB is accessible.Is there<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d3b0b92b9facf31bb37b485d2f9eeb18?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nKevin_TA<br \/>\niphone encryption sqlite3 sqlcipher<br \/>\nI&#8217;ve just implemented SQLCipher in my app to encrypt one fairly simple database. I followed all of the setup instructions carefully on this tutorial and the project is building and the app is running successfully. However, when I use their sample code to encrypt my database, my password is somehow incorrect and I am now unable to open my database. Here is the code:NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppending<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c45b77767b7d2d93bdbb1483bfae59c5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGil<br \/>\napi encryption aes g-wan<br \/>\nAnybody that can tell me why I have problems with this piece of testkode, GWAN crash when it gets called.gwan API help: void aes_init(aes_t *ctx, u32 mode, u8 *key, u32 keylen);My test code:aes_t *testaes = 0; u32 ed = 0; u32 keylen = 128; u8 *testkey = 0; testkey = (u8*)strdup(&#8220;B00DDF9D93E199EFEAE967805E0A5228&#8221;); aes_init( testaes, ed, testkey , keylen );I really would hate to implement another encryption library just because I do not understand the already included.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/lZ6hf.png?s=32&amp;g=1\" \/><br \/>\nIcarus<br \/>\nc# .net encryption<br \/>\nI&#8217;ve an application &#8220;A&#8221;. I&#8217;ve a Second application called &#8220;B&#8221; that is used to run &#8220;A&#8221;to run &#8220;A&#8221; you first run &#8220;B&#8221;, input a password then, &#8220;B&#8221; decrypts &#8220;A&#8221;, then &#8220;A&#8221; is executed!now the problem is, when i close &#8220;A&#8221; i want it back encrypted! right now the only way is to run again &#8220;B&#8221; encrypt and then quit B.I can run &#8220;B&#8221; at the when i close &#8220;A&#8221; as OnClose routing, and ecncrypt &#8220;A&#8221; again.BUT!What if instead of closing &#8220;A&#8221; for some reason it crashes? I need a way to be sure then when i terminate pr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b9c927e051202fc198e70659d9827d2f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNathan Long<br \/>\nphp encryption<br \/>\nI think I may have found a bug in PHP&#8217;s crypt() function under Windows. However: I recognize that it&#8217;s probably my fault. PHP is used by millions and worked on by thousands; my code is used by tens and worked on by me. (This argument is best explained on Coding Horror.)So I&#8217;m asking for help: show me my fault. I&#8217;ve been trying to find it for a few days now, with no luck.The setupI&#8217;m using a Windows server installation with Apache 2.2.14 (Win32) and PHP 5.3.2. My development box runs Windows XP P<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9905bf9a7b8d5a587c1bdff07ef2e801?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nIlmari Karonen<br \/>\ndelphi encryption<br \/>\nI have this function that should crypt bytes from resource file but it&#8217;s just crashing my app:function crypt(src: Pointer; len: DWORD): DWORD; varB: TByteArray absolute src;index: DWORD; beginfor index := 0 to len &#8211; 1 dobeginB[index] := B[index] xor 5; \/\/just to test if its workingend;result := 1; end;i am using it like this:hFind := FindResource(&#8230;); size := SizeOfResource(HInstance, hFind); hRes :=LoadResource(HInstance, hFind); bytes :=LockResource(hRes); crypt(bytes, size);if i dont call th<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/f8nNV.png?s=32&amp;g=1\" \/><br \/>\n12 revs, 8 users 51%WarGodNT<br \/>\nencryption source-code<br \/>\nLast week, I had to create a little GUI for homework. None of my school mates did it. They have stolen my one from where we had to upload it and then they uploaded it again as theirs. When I told my teacher it was all my work he did not believe me.So I thought of putting a useless method or something inside with a proof that I coded it. I thought of encryption. My best idea up till now:String key = (&#8220;ZGV2ZWxvcGVkIGJ5IFdhckdvZE5U&#8221;); \/\/My proof in base64Can you think of some other better ways?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5a802c69c10887eb8ef718c9c186b07f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAli Shafai<br \/>\nsilverlight security encryption isolatedstorage<br \/>\nI have a LOB application in SL, one of the aims is to save partially entered data to persist user&#8217;s state. for example, you start adding a new employee to system, close the browser (or it crashes), next time you open the browser, you have whatever data you had entered before.the saving and loading is easy, I was wondering if there is already a best practice for securing the data, considering both encryption and decryption happen on the same machine and same code, it looks a bit tricky&#8230;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2e0a2e1cdf041ebd8e904cb5e6a3cb50?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nszielenski<br \/>\nruby-on-rails heroku crash<br \/>\nThis is really annoying. It works fine locally (development) but when I push it to Heroku it crashes on the first HTTP request, then if I press F5 it works fine. So it seems to crash when the app first spins up. ANY advise would be greatly appreciated!I think this is where the error is in the Heroku Log output:2012-04-14T20:09:19+00:00 app[web.1]: Sass::SyntaxError (File to import not found or unreadable: bourbon&#8230;.2012-04-14T19:08:14+00:00 app[web.1]: .bundle\/gems\/ruby\/1.9.1\/gems\/railties-3.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/61d2bc0830d4865a62c42c5e23a8c85f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nhbdgaf<br \/>\nssh crash<br \/>\ni can&#8217;t enter to my system with puttythis the log problem:ProblemType: Crash Architecture: i386 CrashCounter: 1 Date: Sat Dec 14 06:08:32 2013 DistroRelease: Ubuntu 12.04 ExecutablePath: \/usr\/sbin\/sshd ExecutableTimestamp: 1383132962 ProcCmdline: sshd:\\ root@pts\/1 ProcCwd: \/ ProcEnviron: ProcMaps:08048000-0808f000 r-xp 00000000 fc:00 141204 \/usr\/sbin\/sshd0808f000-08090000 r&#8211;p 00046000 fc:00 141204 \/usr\/sbin\/sshd08090000-08091000 rw-p 00047000 fc:00 141204 \/usr\/sbin\/sshd08091000-081<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/1381401641\/picture?type=large\" \/><br \/>\nAltainia<br \/>\n13.10 crash<br \/>\nWhenever the entire screen is black, Ubuntu will sometimes crash. This can happen when watching a YouTube video full-screen that has a moment where it&#8217;s pitch black, other content that blacks the entire screen as part of its regular operation and even when locking the computer. Audio works for a couple of seconds then stops, starts again and stops again. I cannot access Ctrl+Alt+F1 nor F2, but sometimes doing that and going back to F7 gives me my cursor, but not all the time. The only thing I ca<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a0ac63e920683a43c3119870926cf5a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDave<br \/>\nupdates crash<br \/>\nI currently have Ubuntu 13.10 installed, but the problem also came up when I had 13.04.The update via GUI doesn&#8217;t work! It tends to crash every time I want to do an update.If I do it from the terminal with sudo apt-get update everything works just fine, but as the computer is for someone with much less knowledge about those things it has to do the update the normal way!It is no problem with my internet, because another computer with Ubuntu does the same updates just the way it&#8217;s supposed to be!I<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f4ee49773fa11c8497deff76408aeb64?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser226072<br \/>\ncrash<br \/>\nFor some time my computer has been beeping three beeps together, then one and after awhile a long beep. Today ubuntu crashed. Any suggestions on what to do? I don&#8217;t know if the two probelms are related.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/815ee86e14bbedd4f353cad0680c7be5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMat<br \/>\nfedora xorg drivers crash rescue<br \/>\nI updated my xorg.conf file looking to set up a dual screen system. Unfortunately, I can&#8217;t provide you this file because when I went to reboot my system crashed. The last line I get when I try to reboot is: Started SYSV: Enabled monthly update of Smolt &#8230;. PC\/SC&#8230;t data.ump directory for each oops&#8230;.resses. It must be running onThen it&#8217;s a black screen.I know I need to boot from a rescue CD which I&#8217;ve downloaded and it runs but I don&#8217;t know what to do then. Help?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a38a4f5f180194ac457cdc057f1be6e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAnthon<br \/>\ndebian linux-mint wireless ssd crash<br \/>\nI have a brand new HP Envy dv7-7212nr, second one, because I thought there was something wrong with the SSD with the first one. After I install Debian Testing or Mint, I compile the wireless drivers. Everything works perfectly. Then after about a day it seems like the SSD crashes. When I don&#8217;t install the wireless drivers, it does not crash. When I boot into a live CD to see what happened, the SSD partition is corrupt, it has to be formatted. I have no idea what&#8217;s going on. Is there anything tha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/rXDJI.png?s=32&amp;g=1\" \/><br \/>\nlimovala<br \/>\nshell ubuntu emacs vi crash<br \/>\nCrash shell allows to specify the command line editing mode to vi or emacs.What will be the difference in these input methods?I am not asking about the internal features.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a38a4f5f180194ac457cdc057f1be6e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAnthon<br \/>\ncentos startup init-script crash chkconfig<br \/>\nI have an app that I need to autostart when the OS starts. I am running in a CentOS 6, so I am using a LSB init script placed in \/etc\/init.d. So far this is fine and working.Now&#8230;.besides that, what I would like is that if my app crashes (exits with error), I want that it automatically starts again. Ideally, even defining a max number of tries. In Mac&#8217;s Info.plist there are the keys KeepAlive Since I already have chkconfig working, I was wondering if there is something I could do with it.I know<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a717291747c76567bb0f086e15ae6e43?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGilles<br \/>\nlinux console crash<br \/>\nFor some reason, whenever I open a TTY, if I switch back to X11, it will be completely frozen except for the cursor. The exact same thing also happens whenever I use IBus to switch to ibus-mozc for Japanese input, or try to open the IBus settings application.Linux 3.11-2 under Crunchbang (Debian) upgraded to Testing.IBus 1.5.3-7ibus-mozc 1.11.1522.102-2EDIT: I uninstalled IBus and now the TTY works fine, so presumably it was an IBus problem. I still don&#8217;t know why IBus was causing that problem t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9e003cb37050b9314665b04a3064958e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nUllfoll<br \/>\nandroid string rsa<br \/>\nThe situation:I want an application that encrypts an string using RSA. I have the public key stored in res\/raw, and as the key is 1024 bits, the resulting string has to be 128 bytes long. However, the resulting string after encrypting is 124 long, and as a result, the decryption crashes.The function I am using to recover the public key is:private PublicKey getPublicKey() throws Exception {InputStream is = getResources().openRawResource(R.raw.publickey);DataInputStream dis = new DataInputStream(i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/725fbdcfc687d943b3f9c97ff71e4561?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1261347<br \/>\ntcp openssl rsa<br \/>\nSo, the question is how to correctly make a binary data of RSA *rsa key? I doRSA *rsa = RSA_generate_key(2048, 65537, 0, 0); uchar *pp = (uchar *)malloc(2560); int bytes = i2d_RSAPublicKey(rsa, &amp;pp); write(client, pp, bytes);and reciever does d2i_RSAPublicKey and the program crashes. what i do wrong?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/65228c7f0e87e7890fe82e68296b805d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJCCyC<br \/>\ncryptography rsa primes pki<br \/>\nOK, my understanding of the mathematical workings of RSA may not be as deep as it should, so feel free to slap me over the head if this is stupid:To generate a private key, we need two random big primes. There is no algorithm that can do that precisely and efficiently, but there are algorithms that can generate big numbers that have a 99.99999&#8230;(a bazillion 9s)&#8230;999% probability of being prime.My question is: what happens if, by a phenomenal stroke of bad luck, when you were generating your ke<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/725fbdcfc687d943b3f9c97ff71e4561?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1261347<br \/>\nc++ qt sockets openssl rsa<br \/>\ni&#8217;m trying to send a rsa key (RSA *myrsa) over tcp connection such way:send(client, (char *)myrsa, sizeof(RSA), 0);and recipient does: read_bytes = tcpSocket.read(buffer, sizeof(RSA)); RSA *myrsa = RSA_new(); memcpy((void*)myrsa, (void*)buffer, read_bytes);then RSA_check_key(rsa) returns -1 or crashes the programm. What i do wrong? Maybe it exists more proper solution? Maybe the row message corrupts by any transformings?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/194a0568844c3ca2218ea3c595001622?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nParanic Demetriou<br \/>\nios encryption rsa<br \/>\nHello i am trying to implement an iPhone app the takes notes and encrypts them and then decrypts them when you enter the correct PIN on a UIAlertView. When the Application loads for the first time i have included in my AppDelegate some code thats checks if there is already a public and private key. If not it goes and generates a pair and adds them to the internal storage. When the application starts for the first time it works just fine. Then i terminate the app and open it again and it just han<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e92a9af9e53cc8e5af575c4b18b34c21?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncHao<br \/>\nssh putty openssl rsa private-key<br \/>\nI have an RSA key (generated by PuTTYgen) that&#8217;s set up for logging in to a bunch of machines via SSH. Or rather, i HAD such a key. (The computer it was on crashed, to the point that a reinstall of XP was required. The private key file is encrypted by the file system, and now that it&#8217;s basically on what looks like a whole other OS and user, whatever XP would do to decrypt the key apparently can&#8217;t be done anymore.)What i have left is an OpenSSL-compatible base64 of the public key (from one of<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/94a9044d6d200c8012a5c990a7477318?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHumam Shbib<br \/>\nencryption public-key rsa<br \/>\nDoes the encryption with a private key and decryption with a public key works in RSA? Is it done when we use RSA for sender authentication ?Thanks.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f07886f85fa3e1ff39ab2188f5fd8c84?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJavaForAndroid<br \/>\nandroid encryption crash rsa<br \/>\nThis question is an exact duplicate of:Problems outsourcing RSA encryption and decryptioni&#8217;m developing an android app. Unfortunately i have a compatibility problem. My source code works with firmware 4.1, but crashes with devices with firmware 2.2. The error seems to be a &#8220;ClassNotFoundException&#8221; caused by the ObjectInputStream. My sourcecode for the encryption and decryption:private Key getPublicKey() {try {InputStream fis = activity.getResources().openRawResource(R.raw.publick);ObjectInputStr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e656921ec7c392037908623fe8202d1a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDoug S<br \/>\nc# perl parameters rsa rsacryptoserviceprovider<br \/>\nI&#8217;ve got an application that is going to be taking a public key from a 3rd party. The public key is generated in Perl using Crypt::RSA::Key. Using the BigInteger class, I&#8217;m able to load this key and encrypt values that should be able to be decrypted by the private key. My code for doing that is:Setting up the properties for later usage:internal RSAParameters RsaParams {get { return this._rsaParams; }set { this._rsaParams = value; } }public BigInteger Modulus {get { return new BigInteger(this._mo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9cc3e3bb2ff2ef30810be80ca741de70?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmakerofthings7<br \/>\n.net cryptography rsa bouncycastle csr<br \/>\nI&#8217;m creating a certificate distribution system to keep track of clients and stuff.What happens is:Client send CSR to Server Server checks and signs certificate Server sends Signed certificate to Client Client puts Signed certificate plus Private key in Windows store.So on the client this happens:\/\/Pseudo Server Object: Server s = new Server(); \/\/Requested Certificate Name and things X509Name name = new X509Name(&#8220;CN=Client Cert, C=NL&#8221;); \/\/Key generation 2048bits RsaKeyPairGenerator rkpg = new R<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stephen S android calabash I&#8217;m having some issues defining my own steps using Calabash-Android and Cucumber.My step definition file containsrequire &#8216;calabash-android\/calabash_steps&#8217;Given \/^I wait for obb download$\/ dopending endAnd the error message I am getting isCalabash-Android\/features\/step_definitions\/calabash_steps.rb:1: syntax error, unexpected tCONSTANT, expecting end-of-inputGiven \/^I wait for obb download$\/ &#8230; &#8230; ^ (SyntaxError)I have tried using the Given [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6851","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6851"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6851\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}