Jump to content

Karaethon

Members
  • Content Count

    68
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Karaethon

  • Rank
    Regular Member
  • Birthday 11/08/1978

Profile Information

  • Gender
    Male
  • Location
    United States
  • Interests
    Coding, Gaming, Girls

Recent Profile Visitors

63 profile views
  1. Karaethon

    Regex huh?

    Hmm, you're right. I tried it with my password and it did not match it, but as I understood it I thought it would. Ugh.
  2. Karaethon

    Regex huh?

    Ok... umm now I'm a little confused.... that site (rocks btw) says that my pattern will do exactly what I thought it would do.... (when i flip the $ and {8,50}) Edit Of course now I'm on past that, I'm trying to figure out how to use this password stuff on this site... https://nulab-inc.com/blog/nulab/password-strength/
  3. Karaethon

    Getting numeric value of data

    Ahhhh. Okay. Havent tried casses in php yet either, good to know.
  4. Karaethon

    Regex huh?

    Ok. Hmmm. Well at least the space issue isnt there, i added those for readability when i put it here, but its good to know not to do in production. The rest ... arghhhhh ill re-read and try again..... 😓
  5. Karaethon

    Getting numeric value of data

    Ok, i accidentally fixed it.... I changed 03 var pivotTable = [162,1,53,...,93,91,16];04 var passKey = ""; to 03 this.pivotTable = [162,1,53,...,93,91,16];04 this.passKey = ""; if anyone knows why this worked, I'd appreciate the explanation.
  6. Karaethon

    Regex huh?

    Ok, so I've been reading about regex and I think I get it. I have one question that I think will prove I do or shoot me in the gut... ^([A-Z]+ [a-z]+ [\?\,\.!@#\$]+)${8,50} means the entire string must include at least 1 capital letter, at least 1 lowercase letter, at least one symbol, and be between 8 and 50 characters (inclusive). Is this correct? And if i wanted min 8 max infinity I'd just use 8 dots ( ........ ) in place of the {8,50}, correct?
  7. Karaethon

    Getting numeric value of data

    ok.... I'm having an odd problem here... This code fails at line 16 because pivotTable is undefined there (line 15 is test for content), but not at line 5. But passkey at line 14 is not a problem... 01 class PivotValueEncryption{ 02 constructor(){ 03 var pivotTable = [162,1,53,...,93,91,16]; 04 var passKey = ""; 05 alert(pivotTable); 06 } 07 set key(value){ 08 this.passKey = value; 09 } 10 get key(){ 11 return this.passKey; 12 } 13 Pivot(character){ 14 alert(this.passKey); 15 alert(this.pivotTable); 16 var charValue = this.pivotTable.indexOf(character.charCodeAt(0)); 17 for (var i = 0; i<this.passkey.length-1; i++){ 18 var pivotValue = this.pivotTable.indexOf(this.passkey.charCodeAt(i)); 19 charValue = charValue + (pivotValue - charValue); 20 21 } 22 return charValue 23 } 24 } 25 var pve = new PivotValueEncryption; 26 pve.key="test"; 27 alert(pve.key); 28 alert(pve.Pivot("A"))
  8. Karaethon

    Getting numeric value of data

    Ok. Thank you for your help.
  9. Karaethon

    Getting numeric value of data

    Ok, I have an array, table by name, it contains the numbers 0 through 255 (inclusive)in a random order. I am looping through the file data one byte at a time and i need the table's index of the numeric value that byte is equal to. So I need a way to get the numeric value of a byte so I can find it in table using .indexOf
  10. Karaethon

    Getting numeric value of data

    Yes android and yes javascript, using droidscript as my ide. Uses js as the language. Im having trouble with AIDE and java, im still learning the proper way hut also want to practice using js way.
  11. Karaethon

    Getting numeric value of data

    Doesnt that work on string data? Or will it work with the full ascii values? Btw, this is not browser based, is android app.
  12. Karaethon

    Getting numeric value of data

    I can't find the answer to this on Google because i don't even know what to ask as search keywords. I have a chunk of data, uploaded file data, and for each byte I need to get that byte of it and find the numeric value (0 - 255) of that byte. I can't find anything about data or file manipulation with javascript, I think I'm asking big G the wrong way.
  13. Karaethon

    AJAX ADuh?

    Ahh, there's a jQuery Ajax ability... jQuery does my heavy lifting for me... Shifting gears.
  14. Karaethon

    AJAX ADuh?

    Error
  15. Karaethon

    AJAX ADuh?

    So I am following the w3schools AJAX toutorial to learn AJAX and I've got something wrong somewhere but I can't find it. The alert is my telltale, it won't fire unless I comment out the rest of the the function contents. Did I misread, mistype, or miscognate? <!doctype html> <html> <head> <script type = "text/javascript"> function clicked(){ alert("You clicked!"); var pidgin = new XMLHttpRequest(); pidgin.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("test").innerHTML = this.responseText; } }; pidgin.open("GET", "test.txt", true); pidgin.send(); } </script> </head> <body> <div id="test"></div> <a href="#" onclick="clicked();">click me</a> </body> </html>
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.