android,encryption,crash,rsaRelated issues-Collection of common programming errors


  • Stephen S
    android calabash
    I’m having some issues defining my own steps using Calabash-Android and Cucumber.My step definition file containsrequire ‘calabash-android/calabash_steps’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$/ … … ^ (SyntaxError)I have tried using the Given and When prepositions an

  • user3304602
    android kivy pyjnius
    When after I give the command: buildozer android debug deploy runI am getting the following error. Its showing syntax error ?# Install distribute # Run ‘curl http://python-distribute.org/distribute_setup.py | venv/bin/python’ # 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 –:–:– 276 File “<stdin>”, line 1 <HTML><

  • VISHAL VIRADIA
    android python exception-handling command-line-arguments android-sdk-tools
    i want to do this:-$> cd android-sdk/tools/systrace $> python systrace.py –set-tags gfx,view,wm $> adb shell stop $> adb shell start $> python systrace.py –disk –time=10 -o mynewtrace.htmli run this command:-python systrace.py –set-tags gfx,view,wmand error comes :-set-tags gfx,view,wmFile “systrace.py”, line 91except subprocess.CalledProcessError, e:^ SyntaxError: invalid syntaxi dont have much idea of python script, Please Help.Reference Link : http://developer.android.com/t

  • user1929549
    android python opencv
    I have difficulties with running a “run.py” file to test my Android OpenCV app. “run.py” file is unmodified and taken from the OpenCV library package from folder ..\modules\ts\misc. I’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

  • user3091819
    javascript android ajax url webview
    By the title itself, I want to know if it is possible to call a Javascript function with ajax request using android’s webview. Because I’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(“javascript:searchPath(“+ position + “,” + destination +”)” );where position and destination are variableswhere in my html file where function searchPath(var1, var2) cont

  • user1344545
    android eclipse noclassdeffounderror kryo
    I 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 “Order and Export” I get a new NoDefClassFound error.Any ideas ?

  • WarrenFaith
    android android-asynctask android-dialog
    I 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’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

  • devMKZ
    android css jquery-mobile cordova
    I 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.<!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <title>Page Template</title> <meta name=’viewport’ content=’minimum-scale=1.0, width=device-w

  • p1rox
    android python
    I’m cloning a repo for a specific tablet under Android and to get the sources, I’ve to execute a python script. When I execute it I’ve got this error message :Traceback (most recent call last):File “/home/p1rox/android-imx-sources/.repo/repo/main.py”, line 40, in <module> from subcmds.version import Version File “/home/p1rox/android-imx-sources/.repo/repo/subcmds/__init__.py”, line 41 raise SyntaxError, ‘%s/%s does not define class %s’ % (^ SyntaxError: invalid syntaxFull code of the scrip

  • Ofirk
    android json eclipse cordova
    I need your help with the new version of phonegap 2.7.0. I’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’m doing wrong and how can I resolve this issue? Thanks, Ofir

  • CJ7
    encryption vb6 cryptography decompiling
    Option Explicit Dim sSecretData sSecretData = “Here is some very secret data.” ‘ Build up the key Dim wshNetwork, sComputerName Set wshNetwork = WScript.CreateObject(“WScript.Network”) sComputerName = wshNetwork.ComputerNameDim capEData Set capEData = CreateObject(“CAPICOM.EncryptedData”)capEData.Algorithm = 3 ‘Use 3DES capEData.SetSecret sComputerName capEData.Content = sSecretDataDim sCipherText sCipherText = capEData.EncryptcapEData.Algorithm = 3 capEData.SetSecret sComputerName capEData.D

  • TGuimond
    javascript web-applications html5 encryption
    I 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:”There is the potential that Session Storage information can get sto

  • dbkk
    c# .net file sqlite encryption
    What is the best approach to encrypting a SQLite database file in .Net/C#? I’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

  • Kevin_TA
    iphone encryption sqlite3 sqlcipher
    I’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

  • Gil
    api encryption aes g-wan
    Anybody 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(“B00DDF9D93E199EFEAE967805E0A5228”); aes_init( testaes, ed, testkey , keylen );I really would hate to implement another encryption library just because I do not understand the already included.

  • Icarus
    c# .net encryption
    I’ve an application “A”. I’ve a Second application called “B” that is used to run “A”to run “A” you first run “B”, input a password then, “B” decrypts “A”, then “A” is executed!now the problem is, when i close “A” i want it back encrypted! right now the only way is to run again “B” encrypt and then quit B.I can run “B” at the when i close “A” as OnClose routing, and ecncrypt “A” again.BUT!What if instead of closing “A” for some reason it crashes? I need a way to be sure then when i terminate pr

  • Nathan Long
    php encryption
    I think I may have found a bug in PHP’s crypt() function under Windows. However: I recognize that it’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’m asking for help: show me my fault. I’ve been trying to find it for a few days now, with no luck.The setupI’m using a Windows server installation with Apache 2.2.14 (Win32) and PHP 5.3.2. My development box runs Windows XP P

  • Ilmari Karonen
    delphi encryption
    I have this function that should crypt bytes from resource file but it’s just crashing my app:function crypt(src: Pointer; len: DWORD): DWORD; varB: TByteArray absolute src;index: DWORD; beginfor index := 0 to len – 1 dobeginB[index] := B[index] xor 5; //just to test if its workingend;result := 1; end;i am using it like this:hFind := FindResource(…); size := SizeOfResource(HInstance, hFind); hRes :=LoadResource(HInstance, hFind); bytes :=LockResource(hRes); crypt(bytes, size);if i dont call th

  • 12 revs, 8 users 51%WarGodNT
    encryption source-code
    Last 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 = (“ZGV2ZWxvcGVkIGJ5IFdhckdvZE5U”); //My proof in base64Can you think of some other better ways?

  • Ali Shafai
    silverlight security encryption isolatedstorage
    I have a LOB application in SL, one of the aims is to save partially entered data to persist user’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…

  • szielenski
    ruby-on-rails heroku crash
    This 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….2012-04-14T19:08:14+00:00 app[web.1]: .bundle/gems/ruby/1.9.1/gems/railties-3.

  • hbdgaf
    ssh crash
    i can’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–p 00046000 fc:00 141204 /usr/sbin/sshd08090000-08091000 rw-p 00047000 fc:00 141204 /usr/sbin/sshd08091000-081

  • Altainia
    13.10 crash
    Whenever 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’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

  • Dave
    updates crash
    I currently have Ubuntu 13.10 installed, but the problem also came up when I had 13.04.The update via GUI doesn’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’s supposed to be!I

  • user226072
    crash
    For 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’t know if the two probelms are related.

  • Mat
    fedora xorg drivers crash rescue
    I updated my xorg.conf file looking to set up a dual screen system. Unfortunately, I can’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 …. PC/SC…t data.ump directory for each oops….resses. It must be running onThen it’s a black screen.I know I need to boot from a rescue CD which I’ve downloaded and it runs but I don’t know what to do then. Help?

  • Anthon
    debian linux-mint wireless ssd crash
    I 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’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’s going on. Is there anything tha

  • limovala
    shell ubuntu emacs vi crash
    Crash 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.

  • Anthon
    centos startup init-script crash chkconfig
    I 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….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’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

  • Gilles
    linux console crash
    For 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’t know why IBus was causing that problem t

  • Ullfoll
    android string rsa
    The 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

  • user1261347
    tcp openssl rsa
    So, 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, &pp); write(client, pp, bytes);and reciever does d2i_RSAPublicKey and the program crashes. what i do wrong?

  • JCCyC
    cryptography rsa primes pki
    OK, 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…(a bazillion 9s)…999% probability of being prime.My question is: what happens if, by a phenomenal stroke of bad luck, when you were generating your ke

  • user1261347
    c++ qt sockets openssl rsa
    i’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?

  • Paranic Demetriou
    ios encryption rsa
    Hello 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

  • cHao
    ssh putty openssl rsa private-key
    I have an RSA key (generated by PuTTYgen) that’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’s basically on what looks like a whole other OS and user, whatever XP would do to decrypt the key apparently can’t be done anymore.)What i have left is an OpenSSL-compatible base64 of the public key (from one of

  • Humam Shbib
    encryption public-key rsa
    Does 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.

  • JavaForAndroid
    android encryption crash rsa
    This question is an exact duplicate of:Problems outsourcing RSA encryption and decryptioni’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 “ClassNotFoundException” caused by the ObjectInputStream. My sourcecode for the encryption and decryption:private Key getPublicKey() {try {InputStream fis = activity.getResources().openRawResource(R.raw.publick);ObjectInputStr

  • Doug S
    c# perl parameters rsa rsacryptoserviceprovider
    I’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’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

  • makerofthings7
    .net cryptography rsa bouncycastle csr
    I’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(“CN=Client Cert, C=NL”); //Key generation 2048bits RsaKeyPairGenerator rkpg = new R

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money