Skip to content

Instantly share code, notes, and snippets.

@lihnux
Created August 6, 2014 06:05
Show Gist options
  • Select an option

  • Save lihnux/2aa4a6f5a9170974f6aa to your computer and use it in GitHub Desktop.

Select an option

Save lihnux/2aa4a6f5a9170974f6aa to your computer and use it in GitHub Desktop.

Revisions

  1. lihnux created this gist Aug 6, 2014.
    5 changes: 5 additions & 0 deletions StringToByteArray.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    var url = "Hello World";
    var data = [];
    for (var i = 0; i < url.length; i++){
    data.push(url.charCodeAt(i));
    }