Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

challenging task

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    challenging task

    Dear All ,
    Its been while since i posted here ..
    Am trying to achieve a task using alpha using xbasic or java-script it doesn't matter .
    I have dim 26 variables twice assuming it's key-bored letters ...
    26 Small Letter ( English )
    26 Capital Letters ( English )
    Beside the above i have 10 digits ( 0-9 ) the numbers in keybored
    13 symbols (assuming Others key-bored strike like , . ? #$% etc )
    Finally i have the password length ( assuming it's 10 )
    What i need to achieve are combination of all the above key bored strike so i can record all key bored strike possibilities ...
    I thought about this as loop for each set ..
    the equation should be followed by each number factorial ...26 ! x 26 ! x 10! x 13! x 10! = ( Huge Result Numer )
    Factorial example :
    5! = 5x4x3x2x1 to have an idea about it ...

    I know this is almost infinity but i still want to do it and for each loop i want to store the generated into my sql table ...
    Can you help me getting this done ?

    thanks in advance

    Ahmed Shahin
    To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

    - William Faulkner

    #2
    Re: challenging task

    Not infinity. you are looking for 839 299 365 868 340 224 different combinations.
    With almost 839.3 quadrillion combinations, you'll have to choose where to store them, but the code
    below should produce each possible password.

    Good luck with this, and have fun.
    Gregg

    Code:
    debug(1)
    dim keystroke[0] as p
    for pressed = 48 to 57
    	keystroke[].key = chr(pressed)
    	keystroke[..].asciivalue = pressed
    next
    for pressed = 65 to 90
    	keystroke[].key = chr(pressed)
    	keystroke[..].asciivalue = pressed
    next
    for pressed = 97 to 122
    	keystroke[].key = chr(pressed)
    	keystroke[..].asciivalue = pressed
    next
    debug(1)
    
    for each firstkey in keystroke
    	pw = ""
    	pw = firstkey.key
    	
    	for each secondkey in keystroke
    		pw = left(pw,1) + secondkey.key
    			
    		for each thirdkey in keystroke
    			pw = left(pw,2) + thirdkey.key
    			
    			for each fourthkey in keystroke
    				pw = left(pw,3) + fourthkey.key
    				
    				for each fifthkey in keystroke
    					pw = left(pw,4) + fifthkey.key
    					
    					for each sixthkey in keystroke
    						pw = left(pw,5) + sixthkey.key	
    					
    						for each seventhkey in keystroke
    							pw = left(pw,6) + seventhkey.key
    							
    							for each eighthkey in keystroke
    								pw = left(pw,7) + eighthkey.key
    									
    								for each ninethkey in keystroke
    									pw = left(pw,8) + ninethkey.key
    										
    									for each tenthkey in keystroke
    										pw = left(pw,9) + tenthkey.key
    										' pw should now have a complete 10 character password
    										' choose where to store the password
    										debug(1)	
    									next
    								next
    							next
    						next
    					next
    				next
    			next
    		next
    	next
    next
    Gregg
    https://paiza.io is a great site to test and share sql code

    Comment


      #3
      Re: challenging task

      After reviewing my answer, I see I missed the punctuation keys.
      Those should be relatively easy to add in.
      Gregg
      https://paiza.io is a great site to test and share sql code

      Comment


        #4
        Re: challenging task

        wow ... i will definitely go with this today ,

        thanks a lot Gregg...
        To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

        - William Faulkner

        Comment


          #5
          Re: challenging task

          Glad to help.
          Gregg
          https://paiza.io is a great site to test and share sql code

          Comment


            #6
            Re: challenging task

            Sounds like you'll dim the lights at the power station. Is this a job for a Quantum machine? What is the purpose of this challenge? Hmmmm
            Bob

            Comment


              #7
              Re: challenging task

              Are we hacking with Alpha? If so, even with an i9 9th gen, you won't be starting any time soon...

              Nicely done code, Gregg. I'm impressed you got that together in 3 hours. I haven't tried it, but it looks well thought out despite my feeling it seems demonic in nature!

              Comment


                #8
                Re: challenging task

                Originally posted by CraigSchumacker View Post
                Are we hacking with Alpha? If so, even with an i9 9th gen, you won't be starting any time soon...

                Nicely done code, Gregg. I'm impressed you got that together in 3 hours. I haven't tried it, but it looks well thought out despite my feeling it seems demonic in nature!
                i always have an arguments when it comes to hacking tools ,

                to be honest !
                hacking exist with alpha or without it ... you or i or any one cannot stop it .. in my opinion .. bringing awareness to people is the best method to fight it , beside that i think its better to do ethical hacking in public
                so everyone can consider security .. the above code is old technic .. used as brutal force .. it exist probably 30 years ago ...

                there is no harsh doing such a thing ... and to avoid the above method , you may use pictures while entering wrong password 3 times .. hence , that's why any email providers would give that picture to confirm you are not a robot using brutal force to hack emails ..

                i consider the above code as achievement with alpha although the method is old .. but Gregg was kind engaph to write it .. it shows the different between normal people and brilliant ones that he done it in few hours ...
                thanks Gregg again ...

                so please chill and lets enjoy coding :)
                Last edited by aal_fareed; 03-03-2020, 01:30 PM.
                To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                - William Faulkner

                Comment


                  #9
                  Re: challenging task

                  Originally posted by bob9145 View Post
                  Sounds like you'll dim the lights at the power station. Is this a job for a Quantum machine? What is the purpose of this challenge? Hmmmm
                  Bob
                  i think ... quantum computing exist ..
                  after all , these kind of knowledge do not go to public , but let me share this with you ...

                  there is achieved project alredy that would share all computers cpu proccess, ram and even storage ...

                  i already saw that and i know it exist ...
                  there is even more than this ,

                  the problem with such subjects is , most people would bring personal issues , hate etc ..

                  if you are interested add me and i will tell you how you would control the entire world wide web ... and i mean this ..
                  it takes only team work , understanding and thinking out of the box ...

                  thanks for your comment ..
                  To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                  - William Faulkner

                  Comment


                    #10
                    Re: challenging task

                    Originally posted by madtowng View Post
                    Not infinity. you are looking for 839 299 365 868 340 224 different combinations.
                    With almost 839.3 quadrillion combinations, you'll have to choose where to store them, but the code
                    below should produce each possible password.

                    Good luck with this, and have fun.
                    Gregg

                    Code:
                    debug(1)
                    dim keystroke[0] as p
                    for pressed = 48 to 57
                    	keystroke[].key = chr(pressed)
                    	keystroke[..].asciivalue = pressed
                    next
                    for pressed = 65 to 90
                    	keystroke[].key = chr(pressed)
                    	keystroke[..].asciivalue = pressed
                    next
                    for pressed = 97 to 122
                    	keystroke[].key = chr(pressed)
                    	keystroke[..].asciivalue = pressed
                    next
                    debug(1)
                    
                    for each firstkey in keystroke
                    	pw = ""
                    	pw = firstkey.key
                    	
                    	for each secondkey in keystroke
                    		pw = left(pw,1) + secondkey.key
                    			
                    		for each thirdkey in keystroke
                    			pw = left(pw,2) + thirdkey.key
                    			
                    			for each fourthkey in keystroke
                    				pw = left(pw,3) + fourthkey.key
                    				
                    				for each fifthkey in keystroke
                    					pw = left(pw,4) + fifthkey.key
                    					
                    					for each sixthkey in keystroke
                    						pw = left(pw,5) + sixthkey.key	
                    					
                    						for each seventhkey in keystroke
                    							pw = left(pw,6) + seventhkey.key
                    							
                    							for each eighthkey in keystroke
                    								pw = left(pw,7) + eighthkey.key
                    									
                    								for each ninethkey in keystroke
                    									pw = left(pw,8) + ninethkey.key
                    										
                    									for each tenthkey in keystroke
                    										pw = left(pw,9) + tenthkey.key
                    										' pw should now have a complete 10 character password
                    										' choose where to store the password
                    										debug(1)	
                    									next
                    								next
                    							next
                    						next
                    					next
                    				next
                    			next
                    		next
                    	next
                    next
                    Gregg, do you mind if you can include nonasci strikes as well ?

                    also i am thinking to loop the 10 length as well so it can cumulatively store possibility from 1 to 10 length pass .. so i get the possibilities of everything from 1 to 10 ..

                    thanks again
                    Last edited by aal_fareed; 03-03-2020, 05:30 PM.
                    To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                    - William Faulkner

                    Comment


                      #11
                      Re: challenging task

                      Originally posted by madtowng View Post
                      Not infinity. you are looking for 839 299 365 868 340 224 different combinations.
                      With almost 839.3 quadrillion combinations, you'll have to choose where to store them, but the code
                      below should produce each possible password.

                      Good luck with this, and have fun.
                      Gregg

                      Code:
                      debug(1)
                      dim keystroke[0] as p
                      for pressed = 48 to 57
                      	keystroke[].key = chr(pressed)
                      	keystroke[..].asciivalue = pressed
                      next
                      for pressed = 65 to 90
                      	keystroke[].key = chr(pressed)
                      	keystroke[..].asciivalue = pressed
                      next
                      for pressed = 97 to 122
                      	keystroke[].key = chr(pressed)
                      	keystroke[..].asciivalue = pressed
                      next
                      debug(1)
                      
                      for each firstkey in keystroke
                      	pw = ""
                      	pw = firstkey.key
                      	
                      	for each secondkey in keystroke
                      		pw = left(pw,1) + secondkey.key
                      			
                      		for each thirdkey in keystroke
                      			pw = left(pw,2) + thirdkey.key
                      			
                      			for each fourthkey in keystroke
                      				pw = left(pw,3) + fourthkey.key
                      				
                      				for each fifthkey in keystroke
                      					pw = left(pw,4) + fifthkey.key
                      					
                      					for each sixthkey in keystroke
                      						pw = left(pw,5) + sixthkey.key	
                      					
                      						for each seventhkey in keystroke
                      							pw = left(pw,6) + seventhkey.key
                      							
                      							for each eighthkey in keystroke
                      								pw = left(pw,7) + eighthkey.key
                      									
                      								for each ninethkey in keystroke
                      									pw = left(pw,8) + ninethkey.key
                      										
                      									for each tenthkey in keystroke
                      										pw = left(pw,9) + tenthkey.key
                      										' pw should now have a complete 10 character password
                      										' choose where to store the password
                      										debug(1)	
                      									next
                      								next
                      							next
                      						next
                      					next
                      				next
                      			next
                      		next
                      	next
                      next
                      Worked like a charm ... its currently inserting values to mysql table .. not sure when it will end but .. wow ..
                      this is going to be really exciting when its done ...

                      thanks a billion again Gregg .
                      Last edited by aal_fareed; 03-03-2020, 05:31 PM.
                      To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                      - William Faulkner

                      Comment


                        #12
                        Re: challenging task

                        Originally posted by aal_fareed View Post
                        Greg , do you mind if you can include nonasci strikes as well ?

                        also i am thinking to loop the 10 length as well so it can cumulatively store possibility from 1 to 10 length pass .. so i get the possibilities of everything from 1 to 10 ..

                        thanks again
                        I don't mind at all, but you'll have to code the non-ascii characters yourself.
                        I'm pretty sure I designed this to create pw codes with a length of 10, but I will admit I did my actual testing setting the length to 3, and then running the test just long
                        enough to make sure it did what I expected.

                        As a last item, there is another g at the end of my name. It's a minor deal, but kind of like me changing your name to al_fareed.
                        Gregg
                        https://paiza.io is a great site to test and share sql code

                        Comment


                          #13
                          Re: challenging task

                          Originally posted by madtowng View Post
                          I don't mind at all, but you'll have to code the non-ascii characters yourself.
                          I'm pretty sure I designed this to create pw codes with a length of 10, but I will admit I did my actual testing setting the length to 3, and then running the test just long
                          enough to make sure it did what I expected.

                          As a last item, there is another g at the end of my name. It's a minor deal, but kind of like me changing your name to al_fareed.
                          Please accept my warm apology for misspelling your name .. it’s adjusted now .

                          thanks a lot Gregg ,

                          My name is ahmed btw aal_fareed is just a nick name

                          Please call me Ahmed :)

                          Thanks a billion for your kind help sir .
                          Last edited by aal_fareed; 03-03-2020, 05:34 PM.
                          To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                          - William Faulkner

                          Comment


                            #14
                            Re: challenging task

                            Originally posted by madtowng View Post
                            I don't mind at all, but you'll have to code the non-ascii characters yourself.
                            I'm pretty sure I designed this to create pw codes with a length of 10, but I will admit I did my actual testing setting the length to 3, and then running the test just long
                            enough to make sure it did what I expected.

                            As a last item, there is another g at the end of my name. It's a minor deal, but kind of like me changing your name to al_fareed.

                            i needed example on NoneAsci Code is what i meant ...
                            you can define one to give the idea ..
                            when i run the code first time alpha crashed ...

                            am gonna play and tweak the code and keep you posted ...
                            actually your code have no problem at all , i think its the alpha version which i am having what caused this issue ..
                            Last edited by aal_fareed; 03-03-2020, 06:43 PM.
                            To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                            - William Faulkner

                            Comment

                            Working...
                            X