Discussions

SmileBASIC Community

Myth XFazeMetrix007

07/15/2016 11:42 AM ·Spoilers

Open Closed

Binary Encryption/Decryptions

i learned how to read binary code and i wanted to make an encrypter that would change a file to bianary then when useing a decryption augorithem to make it back to the code or message. So here is the question how do i assign a charater to # like EX.A=00001 b=00010 g=00111 SO hlp pls Bag=000100000100111 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑ just fun fact.but still need question answered

Advertisement

Comment

This post has no comments.

  • Zee

    07/15/2016 7:12 PM ·Spoilers

    This is a more complex question than it may seem at first. Generally, you will need to do it yourself if you want to convert a character to a number string. You can have a list of characters ["a","b"...] corresponding with a list of replacements ["00001","00010"...] and then go through the list of characters and use SUBSTR$ to change the characters to the corresponding characters

    Yeahs2
    Played
  • can i have a visual example pls i learn easyer that way and thx

    Yeahs1
    Played
  • Zee

    07/15/2016 7:24 PM ·Spoilers

    A visual example? Umm, I guess I can write it in sub-code? Create array CHAR and REP Set CHAR to ["A","B","C",etc.] Set REP to everything you need to replace the characters with in the same order as CHAR FOR I=0 to LEN(CHAR)-1 Replace the characters in the conversion string to the REP string NEXT I don't know what else you mean

    Yeahs3
    Played
  • I think something like this might do what you're looking for I haven't tested it so I have no idea if it will actually work DEF TOBIN$(C$) OUT$="" FOR I=0 TO LEN(C$)-1 OUT$=OUT$+BIN$(ASC(C$[I])) NEXT RETURN OUT$ END PRINT TOBIN$("HELLO WORLD")

    Yeahs2
    Played
  • Thank you so verry much for doing this im going to fallow u bc u seem verry smart about this language [basic] and do you know if this language is similar too VisualBasic.last thing...this sounds like a childish thing too say but bro...remember im 14 wanna be friends? im going to make a quick game and i want you too play it. :] it wont take long.

    Yeahs1
    Played
  • ^^^ too zee

    Yeahs1
    Played
  • also i ment a pic by visual

    Yeahs1
    Played
  • You know a pic is just going to show the same exact code yeah?

    Yeahs1
    Played
  • Zee

    07/16/2016 9:04 PM ·Spoilers

    I'm pretty sure SmileBASIC is similar to VisualBasic. I'd assume they're both different types of BASIC, but I've never used VisualBasic. I don't like using pictures of exact code, because it takes the learning out of it for me. It's why I failed at C at first, I just learned to copy bits of code. But I don't know if it works the same for others. I'd love to play a game that you make.

    Yeahs1
    Played
  • here i made you a game its for you i think or to you i forget the name but its one of thoes

    Yeahs0
    Played
  • to all

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-DPU-2H7V-ERN-9THR

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: